package com.infore.statisticsAndAlarm.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;

import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * The persistent class for the FILE_TYPE database table.
 * 文件类型
 */
@Entity
@Table(name="FILE_TYPE")
@NamedQuery(name="FileType.findAll", query="SELECT f FROM FileType f")
public class FileType implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="FILE_TYPE_ID")
	@GeneratedValue(generator = "uuidGenerator")
	@GenericGenerator(name = "uuidGenerator", strategy = "uuid") // UUID生成策略
	private String fileTypeId;

	/**文件类型名称（6字之内）**/
	@Column(name="FILE_TYPE_NAME")
	private String fileTypeName;

	/**知识库类型**/
	@Column(name="KNOWLEDGE_TYPE")
	private String knowledgeType;

	/**生成时间**/
	@Temporal(TemporalType.TIMESTAMP)
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	@Column(name="CREATE_TIME")
	private Date createTime;
	
	public FileType() {
	}

	public String getFileTypeId() {
		return this.fileTypeId;
	}

	public void setFileTypeId(String fileTypeId) {
		this.fileTypeId = fileTypeId;
	}

	public String getFileTypeName() {
		return this.fileTypeName;
	}

	public void setFileTypeName(String fileTypeName) {
		this.fileTypeName = fileTypeName;
	}

	public String getKnowledgeType() {
		return this.knowledgeType;
	}

	public void setKnowledgeType(String knowledgeType) {
		this.knowledgeType = knowledgeType;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}